package vmcs.simulationsystem;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

/**
 * Title:        VMCS
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      ISS
 * @author Pang Pingli
 * @version 1.0
 */
import java.awt.*;

import vmcs.maintenance.AccessManager;

public class PasswordListener implements ActionListener {

  AccessManager            actrl;

  public PasswordListener(AccessManager  ac) {
    actrl = ac;
  }
  public void actionPerformed(ActionEvent e) {
    /**@todo: Implement this java.awt.event.ActionListener method*/
    TextField    text;

    String       pswd;

    text = (TextField) e.getSource();
    pswd = text.getText();
    actrl.processPassword(pswd);
  }
}